import { http } from "../utils/http"

/**
 * 查询商品分类列表
 */
export const queryGoodsTypeList = () => {
    return http({
        method: 'POST',
        url: '/admin/queryGoodsTypeList',
    })
}

/**
 * 查询商铺列表
 */
export const queryGoods = (data) => {
    return http({
        method: 'POST',
        url: '/order/queryGoods',
        data,
    })
}

/**
 * 添加购物车
 */
export const addShoppingCar = (data) => {
    return http({
        method: 'POST',
        url: '/order/addShoppingCar',
        data,
    })
}

/**
 * 添加订单
 */
export const addOrder = (data) => {
    return http({
        method: 'POST',
        url: '/order/orderGoods',
        data,
    })
}
